package com.leonzx.base.dao.email;

import com.leonzx.base.entity.email.UserMail;
import com.leonzx.base.utils.MyMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author:chen
 * @Description:
 * @Date: 2018-07-06 09:37
 */
@Repository
public interface UserMailDAO extends MyMapper<UserMail> {

    UserMail findByUserId(@Param("userId") String userId);

    void del(@Param("userId") String userId);

    List<UserMail> findUserMailByMailIsNotNull(@Param("userId") String userId, @Param("name") String name, @Param("currentUserId") String currentUserId);
}
